﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SMainCityBattle2PlayerResultMsg extends IMessageBase
    {
        public var guildsMap:Dictionary;
        public var seqPlayerScoreMap:Dictionary;
        public var winGuildId:SEntityId;
        public const _type:int = 5152;
        public static var _regist:SMainCityBattle2PlayerResultMsg = new SMainCityBattle2PlayerResultMsg(true);

        public function SMainCityBattle2PlayerResultMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMainCityBattle2PlayerResultMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            DictSMainCityBattle2GuildInfoHelper.write(param1, this.guildsMap);
            MapSeqSMainCityBattle2PlayerScoreHelper.write(param1, this.seqPlayerScoreMap);
            this.winGuildId.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guildsMap = DictSMainCityBattle2GuildInfoHelper.read(param1);
            this.seqPlayerScoreMap = MapSeqSMainCityBattle2PlayerScoreHelper.read(param1);
            this.winGuildId = new SEntityId();
            this.winGuildId.__read(param1);
            return;
        }// end function

    }
}
